package leetcode.oldVersion;

import java.util.ArrayList;
import java.util.List;

public class lc73 {
    public void setZeroes(int[][] matrix) {

    }

    public static void main(String[] args) {
        //int[][] matrix = new int[][]{{1, 1, 1}, {1, 0, 1}, {1, 1, 1}};
        int[][] matrix = new int[][]{{0,1,2,0}, {3,4,5,2}, {1,3,1,5}};

        List<List<Integer>> listT = new ArrayList<>();
        for (int i = 0; i < matrix.length; i++) {
            for (int j = 0; j < matrix[0].length; j++) {
                if (matrix[i][j] == 0) {
                    List<Integer> list = new ArrayList<>();
                    list.add(i);
                    list.add(j);
                    listT.add(list);
                }
            }
        }

        for (List<Integer> list : listT) {
            int row=list.get(0);
            int col=list.get(1);
            System.out.println(list.get(0));
            System.out.println(list.get(1));
        }

        //System.out.println(matrix[1][2]);

    }
}
